import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/order'
    },
    {
      path: '/order',
      name: 'order',
      component: () => import('@/views/order/index.vue')
    },
    {
      path: '/count',
      name: 'count',
      meta: {
        showChangeBtn: true
      },
      component: () => import('@/views/count/index.vue')
    },
    {
      path: '/process',
      name: 'process',
      meta: {
        showChangeBtn: true
      },
      component: () => import('@/views/process/index.vue')
    }
  ]
})

export default router
